import { playerStore } from '../../store/index'
Component({
    properties: {
        item:{
            type:Object,
            value:{}
        }
    },
    methods: {
        handelSongItemClick(){
            const id = this.properties.item.id
            wx.navigateTo({
                url: `/packagePlayer/pages/music-player/index?id=${id}`,
            })
            // 路由跳转请求歌曲数据
            playerStore.dispatch('playMusicWithSongIdAction',{id})
            // 获取当前歌曲的播放列表以及当前歌曲的索引
            
        }
    }
})
